package vn.edu.saigontech.ncms.model.enumeration;

public enum TeacherType {
	INSTRUCTOR("teacherType.normal"), TA ("teacherType.ta");
	
	private String key;
	
	private TeacherType(String key) {
		this.key = key;
	}
	
	public static TeacherType create(String name) {
		try {
			return valueOf(name);
		}
		catch(Exception ex) {}
		return null;
	}
	
	public String getKey() {
		return this.key;
	}
}